import request from '@/utils/request'
// 获取树形结构
export function businessHallTree () {
  return request({
    url: '/manager/business-hall/tree',
    method: 'GET'
  })
}
// 获取员工分页数据
export function businessUserPage (params) {
  return request({
    url: '/manager/business-hall/user/page',
    method: 'GET',
    params
  })
}
// 获取机构详情
export function businessInfo (id) {
  return request({
    url: `/manager/business-hall/${id}`,
    method: 'GET'
  })
}
// 根据父id获取地址信息
export function getAreasApi (parentId) {
  return request({
    url: '/manager/areas/children',
    method: 'GET',
    params: {
      parentId
    }
  })
}
// 获取机构业务范围
export function getOrganArea (id) {
  return request({
    method: 'GET',
    url: `/manager/business-hall/scope/${id}/1?0=${id}`
  })
}
